package com.atguigu.springcloud.service.impl;

import com.atguigu.springcloud.config.Result;
import com.atguigu.springcloud.entities.Payment;
import com.atguigu.springcloud.service.PaymentService;
import org.springframework.stereotype.Component;

/**
 * @author : zhenyu
 * @Date : 2022/9/5 14:29
 **/

@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public Result<Payment> paymentSQL(Long id) {
        return Result.success(new Payment(id, "errorSerial"), "服务降级返回,---PaymentFallbackService");
    }
}

